﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Backend.Data.Entities
{
    public class GeoReferencia : BaseEntity
    {

        public LegalEntity LegalEntity { get; set; } // 1 to 0.1

        public Ubicacion Ubicacion { get; set; } //origen optional 0.1 to 1 

        #region autoreferencia GeoReferencia 0.1 to 0.*
        public Guid? ParentId { get; set; } // 0.1 to 0.*
        public virtual GeoReferencia Parent { get; set; } // 0.1 to 0.*
        public virtual ICollection<GeoReferencia> GeoReferencias { get; set; } // 0.* to 0.1
        #endregion

        public virtual ICollection<ApplicationUser> ApplicationUsers { get; set; } // 0.* to 0.*

        public virtual ICollection<GeoReferenciaOrganigrama> GeoReferenciaOrganigramas { get; set; } // 0.* to 1


    }
}
